package com.mkb.dao.impl;

import com.mkb.dao.UserDetailFamilyDAO;
import com.mkb.entity.UserDetailFamilyDO;
import com.mkb.entity.UserInfoDO;
import com.mkb.mapper.UserDetailFamilyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;


import java.util.List;
import java.util.Map;

@Repository
public class UserDetailFamilyDAOImpl implements UserDetailFamilyDAO {
	
	@Autowired
	private UserDetailFamilyMapper userDetailFamilyMapper;

	@Override
	public int deleteById(Long id) {
		return userDetailFamilyMapper.deleteById(id);
	}

	@Override
	public int insert(UserDetailFamilyDO record) {
		return userDetailFamilyMapper.insert(record);
	}

	@Override
	public UserDetailFamilyDO getById(Long id) {
		return userDetailFamilyMapper.getById(id);
	}

	@Override
	public int update(UserDetailFamilyDO record) {
		return userDetailFamilyMapper.update(record);
	}

	@Override
	public int count(Map<String, Object> map) {
		return 0;
	}

	@Override
	public List<UserDetailFamilyDO> queryList(Map<String, Object> params) {
		return userDetailFamilyMapper.queryList(params);
	}

	@Override
	public int insertBatch(List<UserDetailFamilyDO> dos) {
		return userDetailFamilyMapper.insertBatch(dos);
	}

	@Override
	public void deleteByGraphId(Long graphId) {
		userDetailFamilyMapper.deleteByGraphId(graphId);
	}
}